# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   处方共享

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.prescription_sharing_page import PrescriptionSharingPage


class PrescriptionSharingCase(UIParent):

    @classmethod
    def test_prescription_sharing_check(cls):
        '''处方共享校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("处方共享")
        authorizePage.ifAuthorize()

        status = PrescriptionSharingPage.prescription_sharing_index()
        asserts.true(status, "处方共享校验")
